textview: Translate the cairo context instead of keeping y value
authorBenjamin Otte <otte@redhat.com>
Sun, 20 Feb 2011 22:29:49 +0000 (23:29 +0100)
committerBenjamin Otte <otte@redhat.com>
Sun, 20 Feb 2011 22:43:42 +0000 (23:43 +0100)
commitc647085e76c4986a97856b539773510e06c348c4
treec3dd4421ee8c8770e56b76a735a530ffcd5aaefd
parent608c1e40eb776f57c58350cbe55f239599391006
textview: Translate the cairo context instead of keeping y value

This avoids overflow when transforming a large value to a pango unit.
To reproduce the problem:
seq 200000 > test.txt && tets/print-editor test.txt
Then scroll to around line 140.000 to see it (depends on font size of
course).
gtk/gtktextdisplay.c